package com.ply.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author XiaoPan
 * date: 2022/1/7 20:12
 * <p>
 * action:
 */
@Mapper
public interface AccountRecordMapper {

    /**
     * 写入数据库 流水记录
     *
     * @param userId 用户id
     * @param amount 用户充值或消费的金额
     */
    int addAccountRecord(@Param("userId") int userId,
                         @Param("amount") double amount);
}
